﻿@{
    Layout = "~/Views/Shared/_Layout.cshtml";
    ViewBag.Title = "Administration";
}

@section Scripts{
    @Scripts.Render("~/Scripts/jquery-1.8.2.min.js")
    @Scripts.Render("~/Scripts/jquery-ui-1.8.24.min.js")
    @Scripts.Render("~/Scripts/jquery.unobtrusive-ajax.min.js")

    <script type="text/javascript">

        
        $(function () {

            $(".adminUsers").click(function () {

                $('#content').load(this.href);
                return false;

            });

            $(".adminRoles").click(function () {

                $('#content').load(this.href);
                return false;

            });

            $(".adminHome").click(function () {

                $('#content').load(this.href);
                return false;

            });

            $(".adminMapSections").click(function () {

                $('#content').load(this.href);
                return false;

            });

            $(".adminPotholes").click(function () {

                $('#content').load(this.href);
                return false;

            });

            $(".adminSpeedbumps").click(function () {

                $('#content').load(this.href);
                return false;

            });

        });



    </script>


}

<br />
<br />
<hgroup class="title">
    <h1>@ViewBag.Title</h1>
</hgroup>
<hr />

<div class="sectionDiv">
    <h3>This is the administration section of MRQES (Mobile Road Quality Evaluation System).
        <br />
        Blabla 
    </h3>

    <nav>
        <ul id="admin_menu">
            <li>@Html.ActionLink("Home", "Home", "Admin", new { area = "" }, new { @class = "adminHome" })</li>
            <li>@Html.ActionLink("User Administration", "Users", "Admin", new { area = "" }, new { @class = "adminUsers" })</li>
            <li>@Html.ActionLink("Role Administration", "Roles", "Admin", new { area = "" }, new { @class = "adminRoles" })</li>
            <li>@Html.ActionLink("Map Section Administration", "MapSections", "Admin", new { area = "" }, new { @class = "adminMapSections" })</li>
            <li>@Html.ActionLink("Potholes Data", "Potholes", "Admin", new { area = "" }, new { @class = "adminPotholes" })</li>
            <li>@Html.ActionLink("Speedbumps Data", "Speedbumps", "Admin", new { area = "" }, new { @class = "adminSpeedbumps" })</li>
        </ul>
    </nav>

    <div id="content">
        
        @Html.Partial("~/Views/Admin/_GeneralStats.cshtml") 


    </div>
</div>


